import { createApp } from 'vue'
import App from './App.vue'

// 引入ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入vue-router
import {createRouter, createWebHashHistory} from 'vue-router'
import routes from './routes'
const router = createRouter({
    routes,
    history: createWebHashHistory()
})
// 引入vue3-eventbus
import eventBus from 'vue3-eventbus'

// 创建Vue3根实例
const app = createApp(App)

// 加载插件
app.use(ElementPlus)
app.use(router)
app.use(eventBus)

app.mount('#app')
